<div id="wrapper">
    <div class="ywtop">
        <div class="ywtop_con">
            <div class="ywtop_sethome">
                <a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('{$kx.config.siteurl}');" href="#">将本站设为首页</a>
            </div>
            <div class="ywtop_addfavorite">
                <a href="javascript:window.external.addFavorite('{$kx.config.siteurl}','{$kx.config.sitename}')">收藏{$kx.config.sitename}</a>
            </div>
            {if ($islogin)}
            <span class="color2 lh100"><span style="float: right"><a rel="nofollow" href="{link=user.mark.index}">我的书架</a>&nbsp;|&nbsp;<a href="{link=user.auth.logout}">退出登录</a></span><a  style="float: right;" href="{link=user.mark.index}" class="color2">{=$userinfo.nickname?:$userinfo.name}</a>
            {else}
            <div class="nri">
                <form name="mylogin" id="mylogin" method="post" action="{link=user.auth.login}">
                    <div class="cc">
                        <div class="txt">账号：</div>
                        <div class="inp"><input type="text" name="username" id="username"></div>
                    </div>
                    <div class="cc">
                        <div class="txt">密码：</div>
                        <div class="inp"><input type="password" name="password" id="password"></div>
                    </div>
                    <div class="frii"><input type="submit" class="int" value=" "></div>
                    <div class="ccc">
                        <div class="txtt"></div>
                        <div class="txtt"><a href="{link=user.auth.register}">用户注册</a></div>
                    </div>
                </form>
            </div>
            {/if}
        </div>
    </div>
    <div class="header">
        <div class="header_logo">
            <a href="index.html">笔趣阁</a>
        </div>
        <div class="header_search">
            <form action="{link=novel.search.result}">
                <div>
                    <input type="text" name="searchkey" placeholder="可搜书名和作者，请您少字也别输错字。" class="search"  id="txtKeyWord" value="{$kx.get.searchkey}" maxlength="30" title="请正确输入"/>
                    <input type="submit" class="searchBtn" value="搜索" title="搜索"/>
                </div>
            </form>
        </div>
        <div class="userpanel">
            <!-- Baidu Button BEGIN -->
            <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
                <a class="bds_tsina" title="分享到新浪微博" href="#"></a>
                <a class="bds_renren" title="分享到人人网" href="#"></a>
                <span class="bds_more"></span>
                <a class="shareCount" href="#"></a>
            </div>
            <script type="text/javascript" id="bdshell_js"></script>
            <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=0" src="http://bdimg.share.baidu.com/static/js/bds_s_v2.js?cdnversion=429866"></script>
            <script type="text/javascript">
                document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date() / 3600000)
            </script>
            <!-- Baidu Button END -->
        </div>
    </div>
    <div class="clear"></div>
    <div class="nav">
        <ul>
            <li><a href="{link=index.index}">首页</a></li>
            <li><a href="{link=novel.rank.index}">排行榜单</a></li>
            <li><a href="{link=novel.over.index}">完本小说</a></li>
            {block method="category.list" name=categorylist pid=1 withall=0}
            {loop=categorylist}
            <li><a title="{$loop.name}" href="{link=novel.category.list categoryid=$loop.id key=$loop.key}">{$loop.name}</a></li>
            {/loop}
            <li><a rel="nofollow" href="{link=user.mark.index}">永久书架</a></li>
            <li><a rel="nofollow" href="{link=user.history.index}">阅读记录</a></li>
        </ul>
    </div>
</div>
